import os
import pickle

path = 'store'

def store(key, value):
    data = {}
    if os.path.exists('store') == True:
        f1 = open(path, 'rb')
        data = pickle.load(f1)
        data[key] = value
    else:
        data = {key: value}
    f = open(path, 'wb')
    pickle.dump(data, f)
    f.close()

def get():
    if os.path.exists('store') == False:
        return None
    f = open(path, 'rb')
    data = pickle.load(f)
    return data

def getValue(key):
    if os.path.exists('store') == False:
        return None
    f = open(path, 'rb')
    data = pickle.load(f)
    if key in data.keys():
        return data[key]
    else:
        return None
